package com.example.aircraftwar.strategyshoot;

import com.example.aircraftwar.aircraft.AbstractAircraft;
import com.example.aircraftwar.bullet.AbstractBullet;

import java.util.List;

public class ContextShoot {
    private StrategyShoot strategyShoot;

    public ContextShoot(StrategyShoot strategyShoot) {
        this.strategyShoot = strategyShoot;
    }

    public void setStrategyShoot(StrategyShoot strategyShoot) {
        this.strategyShoot = strategyShoot;
    }

    public List<AbstractBullet> shoot(AbstractAircraft aircraft, int power, int direction, int shootNum) {
        return strategyShoot.shoot(aircraft,power,direction,shootNum);
    }
}
